package com.xxx;



public class Withdrawer implements Runnable{
    private Account acc = new Account();

    public Withdrawer(Account acc) {
        this.acc = acc;
    }

    @Override
    public void run() {

        while (true) {
            acc.withdrawalOfMoney(2000.0);
        }
    }
}
